<!DOCTYPE html>
<html>
<head>
    <title>收支记录 </title>
		<#include "/header.html">
</head>
<body>
<div id="webpage" v-cloak>
    <div v-show="appearance.showList">
        <div v-show="appearance.showControllBar" class="grid-btn">
            <span v-show="appearance.showSearchForm">
                <div class="form-group col-sm-2">
                    <input type="text" class="form-control" v-model="q._keyword" @keyup.enter="query" placeholder="关键字">
                </div>
                <a class="btn btn-default" @click="query">查询</a>
            </span>

			<#if shiro.hasPermission("user:userpayment:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("user:userpayment:update")>
            <a class="btn btn-primary" @click="update(null,$event)"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("user:userpayment:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!appearance.showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">订单编号 订单表的ID</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="userPayment.orderId" placeholder="订单编号 订单表的ID"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">用户编号 0</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="userPayment.uid" placeholder="用户编号 0"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">类型 购买=1,充值=2,退款=-1</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="userPayment.type" placeholder="类型 购买=1,充值=2,退款=-1"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">发生金额 0</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="userPayment.occurValue" placeholder="发生金额 0"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">后期余额 0</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="userPayment.postValue" placeholder="后期余额 0"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">备注</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="userPayment.remark" placeholder="备注"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">支付状态 支付成功=1</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="userPayment.state" placeholder="支付状态 支付成功=1"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">添加时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="userPayment.adddate" placeholder="添加时间"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>
<script>
    var searchPara = window.location.search;
    var requestParameters={};
    if(!!searchPara){
        requestParameters['uid']=searchPara.getParameter("uid");
    }
</script>
<script src="${request.contextPath}/statics/js/modules/user/userpayment.js?_${.now?long}"></script>
</body>
</html>